local whatFoolishWorn = Action()
function whatFoolishWorn.onUse(player, item, fromPosition, target, toPosition, isHotkey)
	if target.actionid ~= 4204 then
		return false
	end

	if player:getStorageValue(Storage.WhatAFoolish.Questline) ~= 34 or player:getStorageValue(Storage.WhatAFoolish.OldWornCloth) == 1 then
		return false
	end

	player:setStorageValue(Storage.WhatAFoolish.OldWornCloth, 1)
	player:say("Amazing! That was quite fast!", TALKTYPE_MONSTER_SAY)
	toPosition:sendMagicEffect(CONST_ME_BLOCKHIT)
	item:transform(143)
	return true
end

whatFoolishWorn:id(142)
whatFoolishWorn:register()
